﻿@model ScmSpecialEquipmentViewModel
@{
    Layout = null;
    ViewBag.Title = "特种设备台账-编辑";
}
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<script type="text/javascript">
    function dialogRefresh(json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            $("#pagerForm", navTab.getCurrentPanel()).submit();
            $.pdialog.closeCurrent();
        }
    }
</script>
@using (Html.BeginForm("SpecialEquipmentEditData", "ScmSpecialEquipment", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogRefresh);", @class = "pageForm required-validate" }))
{
    <div class="pageFormContent sortDrag" layouth="60">
        @Html.TextBoxFor(model => model.TheSpecialEquipmentInfo.Se_ID, new { @type = "hidden" })
        @Html.TextBoxFor(model => model.TheSpecialEquipmentInfo.Se_Section, new { @type = "hidden" })
        @Html.TextBoxFor(model => model.TheSpecialEquipmentInfo.Se_ConstructionID, new { @type = "hidden" })
        @Html.TextBoxFor(model => model.TheSpecialEquipmentInfo.Se_ConstructionName, new { @type = "hidden" })
        <table class="tab01 tabNo" width="100%;">
            <tr>
                <td class="td1" style="width: 25%;">设备名称：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheSpecialEquipmentInfo.Se_Equipment, new Dictionary<string, object> { { "class", "data-val-required input02" } })
                    @Html.ValidationMessageFor(model => model.TheSpecialEquipmentInfo.Se_Equipment)
                </td>
            </tr>
            <tr>
                <td class="td1">型号：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheSpecialEquipmentInfo.Se_Model, new { @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">使用点：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheSpecialEquipmentInfo.Se_UsePoint, new { @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">进场日期：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheSpecialEquipmentInfo.Se_EnterDate, new { @class = "date input02", Value = (Model.TheSpecialEquipmentInfo.Se_EnterDate == null ? "" : Convert.ToDateTime(Model.TheSpecialEquipmentInfo.Se_EnterDate).ToString("yyyy-MM-dd")) })
                </td>
            </tr>
            <tr>
                <td class="td1">退场日期：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheSpecialEquipmentInfo.Se_ExitDate, new { @class = "date input02", Value = (Model.TheSpecialEquipmentInfo.Se_ExitDate == null ? "" : Convert.ToDateTime(Model.TheSpecialEquipmentInfo.Se_ExitDate).ToString("yyyy-MM-dd")) })
                </td>
            </tr>
            <tr>
                <td class="td1">检验时间：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheSpecialEquipmentInfo.Se_CheckTime, new { @class = "date input02", Value = (Model.TheSpecialEquipmentInfo.Se_CheckTime == null ? "" : Convert.ToDateTime(Model.TheSpecialEquipmentInfo.Se_CheckTime).ToString("yyyy-MM-dd")) })
                </td>
            </tr>
            <tr>
                <td class="td1">检验单位：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheSpecialEquipmentInfo.Se_CheckUnit, new { @size = "92", @class = "input02" })
                </td>
            </tr>
            <tr>
                <td class="td1">检验结果：</td>
                <td>
                    @Html.TextBoxFor(model => model.TheSpecialEquipmentInfo.Se_CheckResult, new { @size = "92", @class = "input02" })
                </td>
            </tr>
        </table>
    </div>

    <div class="formBar">
        <ul>
            <li>
                <button type="submit" class="btn btn-sm">保存</button>
            </li>
            <li>
                <button type="button" class="close btn btn-default btn-sm">取消</button>
            </li>
        </ul>
    </div>

}

